package cqrtplm.mapper;

import com.hustcad.plm.pdm.ec.module.dto.TyplmChangeIssueDetailDTO;
import cqrtplm.dto.IssusLinkPathDTO;
import cqrtplm.dto.PreventErrorCorrectionDTO;
import cqrtplm.entity.PreventErrorCorrectionDO;
import cqrtplm.vo.PreventErrorCorrectionVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface PreventErrorCorrectionMapper  {
    List<PreventErrorCorrectionVO> selectByCondition(@Param("dto") PreventErrorCorrectionDTO dto);

    void batchInsertPrevent(@Param("list") List<PreventErrorCorrectionDO> list);

    void deleteBatchByIds(@Param("objectNumber")List<String> objectNumber);

    List<TyplmChangeIssueDetailDTO> queryChangeIssueInfo(@Param("oidList") List<BigInteger> oidList);

    void batchInsertPreventPath(@Param("list")List<IssusLinkPathDTO> issusLinkPathDTOList);

    List<PreventErrorCorrectionDO> selectAll(@Param("order")String order);

    String selectProjectOrderByProjectId(@Param("id")String id);

    List<BigInteger> selectProjectIdByOrder(@Param("order") String order);

    String selectTypeIdByProjectId(BigInteger bigInteger);

    List<String> queryTypeDefName(String typeId);

    List<String> getAllProjectNo();

}
